<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-user_id" data-rule="" data-source="user/user/selectpage" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" data-params='{"custom[user_type]":"1"}' data-search-field="nickname,mobile" data-format-item="{nickname} - {mobile}" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Student_Name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-student_id" data-rule="required" data-source="user/student/selectpage" data-field="name" class="form-control selectpage" name="row[student_id]" type="text"  value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('日期')}:</label>
        <div class="col-xs-12 col-sm-4">
            {:Form::datetimepicker('row[day]', '', ['id'=>'c-day','data-rule'=>'required','data-date-format'=>'YYYY-MM-DD'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('课程')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_goods_id" data-rule="required" data-source="course/order/selectpage_order_goods" data-field="classes_name" class="form-control selectpage" name="row[order_goods_id]"   type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[status]', $statusList, 1, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group" data-favisible="status=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Leave_Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-leave_content" class="form-control" name="row[leave_content]" type="text" value="">
        </div>
    </div>
    <div class="form-group" data-favisible="status=3">
        <label class="control-label col-xs-12 col-sm-2">{:__('消耗课时')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_hour" class="form-control" name="row[class_hour]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
